﻿using Castle.Core.Interceptor;
using System;

namespace Yunzuan.Foundation.BusinessLogic.Interceptors
{
    public class ServiceInterceptor : IInterceptor
    {
        private static ServiceInterceptor _instance = new ServiceInterceptor();
        public static ServiceInterceptor Instance
        {
            get
            {
                return _instance;
            }
        }

        public void Intercept(IInvocation invocation)
        {
            try
            {
                invocation.Proceed();
            }
            catch (Exception )
            {
                
            }
        }
    }
}
